var book = 'http://47.108.197.28:8000/book';
$ajax({
    url: book,
    success: res => {
    // console.log(res)
        res.forEach(item=> {
            var {coverImage,title,rating,evaluate,labels,price} = item;
            
            var labels = labels.join("/")
            var template = `
            <div class="decotation">
            <img src="https://images.weserv.nl/?url=${coverImage}" alt="">
            <div class="content">
                <p class="header">${title}</p>
                <p class="evaluate"><span>${rating}</span>(${evaluate}人评价)</p>
                <p class="infor">${labels}/${price}.00元</p>
            </div>
            </div>
            `
             $(".container").append(template)
        });
    }
  })